package util;

import static org.junit.jupiter.api.Assertions.*;

import java.util.Arrays;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

class MyArraySorterTest2 {

	@BeforeAll
	static void setUpBeforeClass() throws Exception {
	}

	@AfterAll
	static void tearDownAfterClass() throws Exception {
	}

	@Test
	void testSortDoubleArray() {
		final double[] array1 = {1.2147483647 , 1.31415926535897 , 4 , 5 , 1 , 4};
        final double[] array2 = array1.clone();
        Arrays.sort(array1);
        assertArrayEquals(array1, MyArraySorter.sort(array2));
		fail("Not yet implemented");
	}

	@Test
	void testSortFloatArray() {
		final float[] array1 = {(float) 1.21 , (float) 1.314 , 5 , 1 , 4};
        final float[] array2 = array1.clone();
        Arrays.sort(array1);
        assertArrayEquals(array1, MyArraySorter.sort(array2));
		fail("Not yet implemented");
		fail("Not yet implemented");
	}

	@Test
	void testSortIntArray() {
		final int[] array1 = {1 , 1 , 4 , 5 , 1 , 4};
        final int[] array2 = array1.clone();
        Arrays.sort(array1);
        assertArrayEquals(array1, MyArraySorter.sort(array2));
		fail("Not yet implemented");
		fail("Not yet implemented");
	}

}
